package com.lagou.service.impl;

import com.lagou.service.HelloService;
import com.lagou.service.HelloService2;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service
public class HelloService2Impl implements HelloService2 {

    @Override
    public String sayHello2(String name, int timeToWait) {
        System.out.println("server2:"+RpcContext.getContext().getAttachments().get("ip"));
        return "hello:"+name;
    }
}
